home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6880 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: winternet.com!mschwarz
  2. From: mschwarz@winternet.com (Michael Schwarz)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: DOS compiler with socket support???
  5. Date: 15 Feb 1996 23:02:09 GMT
  6. Organization: StarNet Communications, Inc
  7. Message-ID: <4g0e1h$97v@blackice.winternet.com>
  8. References: <31228C79.55B0@umbc.edu>
  9. NNTP-Posting-Host: parka.winternet.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Kevin Burton (kburto1@umbc.edu) wrote:
  13. : I am looking for a C/C++ DOS compiler that has socket support for 
  14. : AF_INET,SOCK_STREAM sockets.  If anyone can offer any suggestions I 
  15. : would be very appreciative.
  16.  
  17. : TIA
  18.  
  19. : Kevin Burton
  20.  
  21. I'm not aware of one with native support.  The reason for this is simple.
  22. MS-DOS does not support TCP/IP in any sort of "native" way.  All the TCP/IP
  23. protocol stacks for MS-DOS are third party.  Nost of those third parties
  24. provide C API's for sockets, often as a separate product.
  25.  
  26. The only one I've used are the socket libs for Novell's LAN Workplace for
  27. DOS product.  They're not great (the LWP TCP/IP implementation is pretty
  28. bad anyway -- doesn't do window sizing in the TCP protocol very well)
  29. but they work.  The only difference between that lib and BSD sockets
  30. is that since the "read" and "write" functions in the stdio lib don't
  31. directly support sockets, the LWP libs have soread() and sowrite() functions
  32. to do the reads and writes on sockets.  You can get around that with
  33. pre-processor defines pretty easily.
  34.  
  35. I know there are a number of other choices as well, but I haven't done
  36. much socket programming under MS-DOS.
  37.  
  38. Good luck!
  39.  
  40.  
  41. --
  42. Michael A. Schwarz                           Minneapolis, MN
  43. mschwarz@winternet.com                  n0zes@n0zes.ampr.org
  44.  
  45.